import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'fluent:apps-24-filled',
      keepAlive: true,
      order: 1000,
      title: $t('apps.title'),
      authority: ['super'],
    },
    name: 'Appllications',
    path: '/apps',
    children: [
      {
        name: 'HeightWeight',
        path: '/apps/bmi',
        component: () => import('#/views/apps/bmi/index.vue'),
        meta: {
          icon: 'cuida:weight-outline', //healthicons:body-mass-index-outline
          title: $t('apps.heightWeight.title'),
        },
      },
    ],
  },
];

export default routes;
